﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderCarMakeModel.aspx.cs" Inherits="Provider_CarInsurance_ViewProviderCarMakeModel"
    Title="View Make & Model" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Car Make & Model</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNew" NavigateUrl="~/Provider/CarInsurance/ProviderCarMakeModel.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <fieldset>
            <dl>
                <dt class="top_action">
                    <label>
                        My Car Make</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlProviderCarMake" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                </dd>
            </dl>
        </fieldset>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="2"
            DataKeyNames="ProviderCarMakeModelId" DataSourceID="sqlDsProviderCarMakeModel" OnRowDataBound="GridView1_RowDatabound"
            CssClass="progridstyle" GridLines="None" EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:BoundField DataField="ProviderCarMakeModelId" HeaderText="ProviderCarMakeModelId"
                    InsertVisible="False" ReadOnly="True" SortExpression="ProviderCarMakeModelId"
                    Visible="False" />
                <asp:BoundField DataField="CarMakeId" HeaderText="CarMakeId" SortExpression="CarMakeId"
                    Visible="False" />
                <asp:BoundField DataField="CarModelId" HeaderText="CarModelId" SortExpression="CarModelId"
                    Visible="False" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" SortExpression="ProviderCompanyId"
                    Visible="False" />
                <asp:BoundField DataField="CX Car Model" HeaderText="CX Car Model" SortExpression="CX Car Model" />
                <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                <asp:BoundField DataField="CarCode" HeaderText="CarCode" SortExpression="CarCode"
                    Visible="False" />
                <asp:BoundField DataField="Body" HeaderText="Body" SortExpression="Body" />
                <asp:BoundField DataField="NumberOfDoors" HeaderText="NumberOfDoors" SortExpression="NumberOfDoors" />
                <asp:BoundField DataField="CC" HeaderText="CC" SortExpression="CC" />
                <asp:CheckBoxField DataField="TurboEngine" HeaderText="TurboEngine" SortExpression="TurboEngine"
                    Visible="False" />
<%--                <asp:CheckBoxField DataField="ParallelImport" HeaderText="ParallelImport" SortExpression="ParallelImport"
                    Visible="False" />  --%>                  
                <asp:CheckBoxField DataField="IsParallel" HeaderText="Parallell" SortExpression="Parallel"
                    Visible="True" />
                <asp:BoundField DataField="Rate" DataFormatString="{0:F}" HeaderText="Rate" SortExpression="Rate" />
                <asp:BoundField DataField="Agent" HeaderText="Agent" SortExpression="Agent" Visible="False" />
                <asp:BoundField DataField="UW" HeaderText="UW" SortExpression="UW" Visible="False" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId"
                    Visible="False" />
                <asp:CheckBoxField DataField="TurboEngine" HeaderText="IsTurbo" SortExpression="TurboEngine" />
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                    Visible="False" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                <asp:HyperLinkField  HeaderText="" Text="Edit" Target="_self" DataNavigateUrlFormatString="ProviderCarMakeModel.aspx?CarMakeId={0}&CarModelId={1}"
                    DataNavigateUrlFields="CarMakeId, CarModelId"></asp:HyperLinkField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderCarMakeModel" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
            SelectCommand="sprocProviderCarMakeModelSelectItemListView" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlProviderCarMake" Name="CarMakeId" PropertyName="SelectedValue"
                    Type="Int32" />
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>
